<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>资讯管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
        <div class="sub-colum">
		    <div class="tit">代理商管理</div>
		    <ul>
		    	<li class="curr"><a href="">下级机构列表</a></li>
		    </ul>
		</div>
        <!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span class="curr">下级机构列表</span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
				    <div class="mainContainer line-all">
				        <!--star tabMainCont-->
				        <div class="tabMainCont">
				        <fieldset class="layui-elem-field">
							<legend>按条件搜索</legend>
							<div class="layui-field-box">
									<form class="layui-form layui-form-pane1" method="post">
										
										<div class="layui-form-item">
											<div class="layui-input-inline">
												<select name="school_id" class="abc" lay-search="" lay-verify="required" id="cate_id" placeholder="请选择" lay-filter="cate_id">
													<option value="">网校</option>
													<{foreach from=$schools item=item}>
														<option value="<{$item.id}>" <{if $conditions['school_id'] eq $item.id}>selected="selected"<{/if}>><{$item.school_name}></option>
													<{/foreach}>
												</select>
											</div>

											<div class="layui-inline">
												<button type="submit" class="layui-btn">搜索</button>
											</div>
										</div>
									</form>
							</div>
						</fieldset>
				            <!--star会员管理-->
		                	<form class="layui-form layui-form-pane1" method="post" delete_action="/news/delete">
								<table class="layui-table" lay-even lay-skin="row">
								  	<thead>
									  	<tr>
										  	<th>机构名称</th>
										  	<th>网课消费金额</th>
										  	<th>题库消费金额</th>
										  	<th>实训消费金额</th>
										  	<th>佣金</th>
										  	<th>操作</th>
									  	</tr>
								  	</thead>
								  	<tbody>
								  	<{foreach from=$item_list item=item}>
									  	<tr>
									  		<td class="center"><{$item['school_name']}></td>
									  		<td class="center"><{$item.video_price.price}></td>
									  		<td class="center"><{$item.topic_price.price}></td>
									  		<td class="center"><{$item.shixun_price.price}></td>
									  		<td class="center">总计：<{$item.video_price.commission+$item.topic_price.commission+$item.shixun_price.commission}>；已兑换：<{$item.video_price.commission_used+$item.topic_price.commission_used+$item.shixun_price.commission_used}>；剩余：<{($item.video_price.commission+$item.topic_price.commission+$item.shixun_price.commission)-($item.video_price.commission_used+$item.topic_price.commission_used+$item.shixun_price.commission_used)}></td>
									  		<td class="center"><a href="/agent/detail/<{$item.id}>">查看详情</a></td>
									  	</tr>
								  	<{/foreach}>
								  	<{if $item_list|count eq 0}>
								  		<tr>
									  		<td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="8">
												赞无数据！
											</td>
									  	</tr>
								  	<{/if}>
							  		</tbody>
							  	</table>
						  	</form>
			                <div class="pages p-tb20" style="text-align:right;">
			                    <{$pagination}>
			                </div>
			            </div>
			            <!--star会员管理-->
			        </div>
				        <!--end tabMainCont-->
		        </div>
		    </div>
		</div>
	</div>
</div>
<{include file="footer.html"}>
</body>
</html>